package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPressureMonitoringPointsMapper;
import com.ruoyi.system.domain.DispatchPressureMonitoringPoints;
import com.ruoyi.system.service.IDispatchPressureMonitoringPointsService;

/**
 * 监测点信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPressureMonitoringPointsServiceImpl implements IDispatchPressureMonitoringPointsService 
{
    @Autowired
    private DispatchPressureMonitoringPointsMapper dispatchPressureMonitoringPointsMapper;

    /**
     * 查询监测点信息
     * 
     * @param monitoringPointId 监测点信息主键
     * @return 监测点信息
     */
    @Override
    public DispatchPressureMonitoringPoints selectDispatchPressureMonitoringPointsByMonitoringPointId(Long monitoringPointId)
    {
        return dispatchPressureMonitoringPointsMapper.selectDispatchPressureMonitoringPointsByMonitoringPointId(monitoringPointId);
    }

    /**
     * 查询监测点信息列表
     * 
     * @param dispatchPressureMonitoringPoints 监测点信息
     * @return 监测点信息
     */
    @Override
    public List<DispatchPressureMonitoringPoints> selectDispatchPressureMonitoringPointsList(DispatchPressureMonitoringPoints dispatchPressureMonitoringPoints)
    {
        return dispatchPressureMonitoringPointsMapper.selectDispatchPressureMonitoringPointsList(dispatchPressureMonitoringPoints);
    }

    /**
     * 新增监测点信息
     * 
     * @param dispatchPressureMonitoringPoints 监测点信息
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPressureMonitoringPoints(DispatchPressureMonitoringPoints dispatchPressureMonitoringPoints)
    {
        return dispatchPressureMonitoringPointsMapper.insertDispatchPressureMonitoringPoints(dispatchPressureMonitoringPoints);
    }

    /**
     * 修改监测点信息
     * 
     * @param dispatchPressureMonitoringPoints 监测点信息
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPressureMonitoringPoints(DispatchPressureMonitoringPoints dispatchPressureMonitoringPoints)
    {
        return dispatchPressureMonitoringPointsMapper.updateDispatchPressureMonitoringPoints(dispatchPressureMonitoringPoints);
    }

    /**
     * 批量删除监测点信息
     * 
     * @param monitoringPointIds 需要删除的监测点信息主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureMonitoringPointsByMonitoringPointIds(Long[] monitoringPointIds)
    {
        return dispatchPressureMonitoringPointsMapper.deleteDispatchPressureMonitoringPointsByMonitoringPointIds(monitoringPointIds);
    }

    /**
     * 删除监测点信息信息
     * 
     * @param monitoringPointId 监测点信息主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureMonitoringPointsByMonitoringPointId(Long monitoringPointId)
    {
        return dispatchPressureMonitoringPointsMapper.deleteDispatchPressureMonitoringPointsByMonitoringPointId(monitoringPointId);
    }
}
